package com.mazihao.emos.db.dao;

import com.mazihao.emos.db.pojo.TbUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

/**
 * @author mazihao
 */
@Mapper
public interface TbUserDao {
    public boolean haveRootUser();

    public int insert(HashMap param);

    public Integer searchIdByOpenId(String openId);

    public Set<String> searchUserPermissions(int userId);

    public TbUser searchById(int userId);

    public String searchUserHireDate(int userId);

    public HashMap<String, Object> searchUserSummary(int userId);

    public ArrayList<HashMap<String, Object>> searchUserGroupByDept(String keyword);

    public ArrayList<HashMap<String, Object>> searchMembers(List<Integer> params);

    public HashMap<String, Object> searchUserInfo(int userId);

    public int searchDeptManagerId(int id);

    public int searchGmId();
}